package com.jsjosem.aftersales.api;

import com.jsjosem.aftersales.data.response.DepartmentsResponse;
import com.jsjosem.aftersales.data.response.DepartmentsUserResponse;
import com.jsjosem.aftersales.data.response.PageResponse;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

public interface DepartmentsApi {

    /**
     * 获取部门
     */
    @GET("/dept/index")
    Call<PageResponse<DepartmentsResponse>> getDepartments();

    @GET("/dept/{id}/users")
    Call<PageResponse<DepartmentsUserResponse>> getDepartmentUsers(@Path("id") int id, @Query("page") int page, @Query("limit") int limit);
}
